<?php
$ads = Ads::model()->findByAttributes(array(
	'name'=>!empty($name) ? $name : ""
));
if(empty($ads)){

}else{
?>
<div style="width:<?php echo $ads->width;?>; height:<?php echo $ads->height;?>;<?php echo $ads->position;?>">
	<?php echo $ads->script;?>
	<?php echo $ads->script_1;?>
	<?php echo $ads->script_2;?>
	<?php echo $ads->script_3;?>
</div>
<?php
}

?>